<form action="{:sysuri()}" method="post" data-auto="true" class="layui-form layui-card" data-table-id="HouseTable">
    <div class="layui-card-body padding-left-40">

        {if $super }
        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('所属公司')}</label>
            <div class="layui-input-block">
                <select name="shop_account_id" lay-search class="layui-select" lay-filter="shop_account_id" id="shop_account_id" required>
                    <option value=''>-- {:lang('全部')} --</option>
                    {foreach $account_list as $id => $name}
                    <option value="{$id}" {if isset($vo.shop_account_id) && $id == $vo.shop_account_id}selected{/if}>{$name}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        {else/}
        <input type="hidden" name="shop_account_id" id="shop_account_id" value='{$vo.account_id|default=$adminUser.account_id}'>
        {/if}
        <!--            <div class="layui-form-item layui-inline">-->
        <!--                <label class="layui-form-label">{:lang('仓库')}</label>-->
        <!--                <div class="layui-input-inline">-->
        <!--                    <select name="warehouse_id" lay-search class="layui-select">-->
        <!--                        <option value=''>&#45;&#45; {:lang('全部')} &#45;&#45;</option>-->
        <!--                        foreach $warehouse_list as $id => $name-->
        <!--                        <option value="{$id}" {if isset($vo.warehouse_id) && $id == $vo.warehouse_id}selected{/if}>{$name}</option>-->
        <!--                        /foreach-->
        <!--                    </select>-->
        <!--                </div>-->
        <!--            </div>-->
        <!--            <div class="layui-inline">-->
        <!--                <label class="layui-form-label">{:lang('货位')}</label>-->
        <!--                <div class="layui-input-inline">-->
        <!--                    <input name="location_code" value='{$vo.location_code|default=""}' class="layui-input" required placeholder="{:lang('货位')}">-->
        <!--                </div>-->
        <!--            </div>-->
        {notempty name='vo.id'}
        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('系统单号')}</label>
            <div class="layui-input-block">
                <input name=""  value='{$vo.other_order_no|default=""}' class="layui-input" required  placeholder="{:lang('系统单号')}" readonly>
            </div>
        </div>
        {/notempty}
        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('第三方订单号')}</label>
            <div class="layui-input-block">
                <input name="order_no"  value='{$vo.order_no|default=""}' class="layui-input" required  placeholder="{:lang('第三方订单号')}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('物流名称')}</label>
            <div class="layui-input-block">
                <input name="express_name" value='{$vo.express_name|default=""}' class="layui-input" required placeholder="{:lang('物流名称')}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('物流单号')}</label>
            <div class="layui-input-block">
                <input name="express_no" value='{$vo.express_no|default=""}' required class="layui-input" placeholder="{:lang('物流单号')}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('商品名称')}</label>
            <div class="layui-input-block">
                <input name="good_name" value='{$vo.good_name|default=""}' required class="layui-input"  placeholder="{:lang('商品名称')}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('商品spu')}</label>
            <div class="layui-input-block">
                <input name="spu_code" value='{$vo.spu_code|default=""}' class="layui-input" required placeholder="{:lang('商品spu')}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('商品规格sku')}</label>
            <div class="layui-input-block">
                <input name="sku_code" value='{$vo.sku_code|default=""}' class="layui-input" required placeholder="{:lang('sku_code')}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('商品数量')}</label>
            <div class="layui-input-block">
                <input type="number" name="num" value='{$vo.num|default=""}' class="layui-input" required placeholder="{:lang('商品数量')}">
            </div>
        </div>
<!--            <div class="layui-form-item">-->
<!--                <label class="layui-form-label">{:lang('剩余数量')}</label>-->
<!--                <div class="layui-input-block">-->
<!--                    <input type="number" name="surplus_num" value='{$vo.surplus_num|default=""}' class="layui-input" required placeholder="{:lang('剩余数量')}">-->
<!--                </div>-->
<!--            </div>-->
        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('商品价格')}</label>
            <div class="layui-input-block">
                <input type="number" name="price" value='{$vo.price|default=""}' class="layui-input" placeholder="{:lang('商品价格')}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('规格')}</label>
            <div class="layui-input-block">
                <input name="spec_data" value='{$vo.spec_data|default=""}' class="layui-input" required placeholder="{:lang('规格')}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('规格值')}</label>
            <div class="layui-input-block">
                <input name="spec_value" value='{$vo.spec_value|default=""}' class="layui-input" required placeholder="{:lang('规格值')}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('商品地址')}</label>
            <div class="layui-input-block">
                <input name="item_url" value='{$vo.item_url|default=""}' class="layui-input" placeholder="{:lang('商品地址')}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('订单详情地址')}</label>
            <div class="layui-input-block">
                <input name="order_detail_url" value='{$vo.volume|default=""}' class="layui-input"  placeholder="{:lang('订单详情地址')}">
            </div>
        </div>

    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>{:lang('保存数据')}</button>
        {notempty name='vo.id'}
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="{:lang('确定要取消编辑吗？')}" data-close>{:lang('取消编辑')}</button>
        {/notempty}
    </div>
</form>